home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19941221-19950208 / 000131_news@columbia.edu_Sun Jan 8 19:23:03 1995.msg < prev    next >
Internet Message Format  |  2020-01-01  |  2KB

  1. Received: from apakabar.cc.columbia.edu by watsun.cc.columbia.edu with SMTP id AA28353
  2.   (5.65c+CU/IDA-1.4.4/HLK for <kermit.misc@watsun.cc.columbia.edu>); Sun, 8 Jan 1995 14:23:09 -0500
  3. Received: by apakabar.cc.columbia.edu id AA02649
  4.   (5.65c+CU/IDA-1.4.4/HLK for kermit.misc@watsun); Sun, 8 Jan 1995 14:23:07 -0500
  5. Path: news.columbia.edu!watsun.cc.columbia.edu!fdc
  6. From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
  7. Newsgroups: comp.protocols.kermit.misc
  8. Subject: Re: Can spawn'ed programs access the open connection?
  9. Date: 8 Jan 1995 19:23:03 GMT
  10. Organization: Columbia University
  11. Lines: 21
  12. Message-Id: <3epe2n$2in@apakabar.cc.columbia.edu>
  13. References: <D23K9H.Ext@olsen.ch>
  14. Nntp-Posting-Host: watsun.cc.columbia.edu
  15. Apparently-To: kermit.misc@watsun.cc.columbia.edu
  16.  
  17. In article <D23K9H.Ext@olsen.ch>, Martin Lichtin <lichtin@olsen.ch> wrote:
  18. >How can I run a communications application after having used kermit to
  19. >open and prepare the device?  Is there a way to pass the UNIX file
  20. >handle on? Can the RUN command be used for this?
  21. >Thanks for more information. I'm running C-Kermit 5A(188) under UNIX.
  22. >
  23. As described in the manual, "Using C-Kermit", page 232, the variable
  24. \v(ttyfd) contains the open file descriptor of the communication channel,
  25. which can be either a serial device or a TCP/IP connection (or, in the
  26. case of SunLink X.25, an X.25 connection).
  27.  
  28. If your communication application accepts an arbitrary file descriptor,
  29. then you can pass it via this variable.  Otherwise, you can use the
  30. redirection capabilities of certain shells, notably ksh, to redirect the
  31. fd to your communication program's stdin/stdout.
  32.  
  33. Version 5A(190), the current release of C-Kermit, includes a new REDIRECT
  34. command that starts a given program with its stdin/stdout redirected to
  35. C-Kermit's open communications channel.
  36.  
  37. - Frank